package com.google.jessewilson.codesearch.api;

import java.net.URI;
import java.util.Date;

/**
 * A collection of results from a code search query.
 *
 * @author jessewilson
 */
public final class SearchResult {

  private String id;
  private Date updated;
  private String title;
  private String generator;
  private int totalResults;
  private int startIndex;
  private String authorName;
  private URI authorUri;
  private boolean hasMoreResults = true;

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public Date getUpdated() {
    return updated;
  }

  public void setUpdated(Date updated) {
    this.updated = updated;
  }

  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }

  public String getGenerator() {
    return generator;
  }

  public void setGenerator(String generator) {
    this.generator = generator;
  }

  public int getTotalResults() {
    return totalResults;
  }

  public void setTotalResults(int totalResults) {
    this.totalResults = totalResults;
  }

  public int getStartIndex() {
    return startIndex;
  }

  public void setStartIndex(int startIndex) {
    this.startIndex = startIndex;
  }

  public String getAuthorName() {
    return authorName;
  }

  public void setAuthorName(String authorName) {
    this.authorName = authorName;
  }

  public URI getAuthorUri() {
    return authorUri;
  }

  public void setAuthorUri(URI authorUri) {
    this.authorUri = authorUri;
  }

  public boolean getHasMoreResults() {
    return hasMoreResults;
  }

  public void setHasMoreResults(boolean hasMoreResults) {
    this.hasMoreResults = hasMoreResults;
  }
}
